﻿@using MvcApplication2.Models
<div class="navbar navbar-fixed-top">
    <div class="navbar-inner">
        <div class="container">
            <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse"><span
                class="icon-bar"></span><span class="icon-bar"></span><span class="icon-bar"></span>
            </a>
            @Html.ActionLink("Project Name", "Index", "Home", null, new { @class = "brand" })
            @{
                var workInProgress = UserMessageHelper.GetWorkInProgress();
            }
            <div class="nav-collapse">
                <ul class="nav">
                    @if (Request.IsAuthenticated)
                    {
                        <li>@Html.ActionLink("Hello " + User.Identity.Name + " !", "ChangePassword", "Account", routeValues: null, htmlAttributes: new { @class = "username", title = "Change password" })</li>
                                  
                        <li><a href='@Url.Action("LogOff", "Account")' ><i class="icon-off icon-white"></i>Log
                            Off </a></li>
                        <li><a href='@Url.Action("Dashboard", "User")' ><i class="icon-tasks icon-white"></i>
                            Dashboard
                            @if (workInProgress > 0)
                            {
                                <span class='badge badge-important'>@workInProgress</span>
                            }</a> </li> 
                        <li><a href='@Url.Action("MyProfile", "User")' ><i class="icon-user icon-white"></i>
                            My Profile </a></li>                                                 
                        <li>@Html.Partial("_MenuMessage")</li>
                    }
                    else
                    {
                        <li>@Html.ActionLink("Login", "Login", "Account")</li>
                                
                    }
                </ul>
            </div>
        </div>
    </div>
</div>
<div class="row-fluid" style="height: 45px">
</div>
